#include <QApplication>
#include <QObject>

#include "DGVPlot.h"

typedef double plotType;

const int Size = 128;

int main(int argc, char *argv[])
{
    QApplication app(argc,argv);
    DGVPlot Plot;
    Array<double,1> gaussian(Size), xValues(Size);
    firstIndex x;

    xValues = x;
    plotType stddev = Size/4.0, x0 = Size/2.0;
    gaussian = exp(-(x-x0)*(x-x0)/(stddev*stddev));

    Plot.setRenderAntialiased();
    Plot.createCurvePlot(xValues,gaussian,"Gaussian");
    Plot.show();

	return app.exec();
}
